import { ref } from 'vue';

export const reload = ref<boolean>(false);

export const hasChildren = (list: Array<any>) => {
  list.forEach((item) => {
    if (item.hasChildren) {
      item.children = [];
    }
  });
  return list;
};
